package org.ruoyi.aibox.domain.bo;

import org.ruoyi.common.core.validate.AddGroup;
import org.ruoyi.common.core.validate.EditGroup;
import org.ruoyi.aibox.domain.AuditTask;
import org.ruoyi.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 审核任务业务对象 audit_task
 *
 * @author xpeter
 * @date 2025-04-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AuditTask.class, reverseConvertGenerate = false)
public class AuditTaskBo extends BaseEntity {

    /**
     * 审核任务ID
     */
    @NotNull(message = "审核任务ID不能为空", groups = { EditGroup.class })
    private Long taskId;

    /**
     * 审核对象名称
     */
    @NotBlank(message = "审核对象名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditObjectName;

    /**
     * 审核项总数
     */
    @NotNull(message = "审核项总数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalItems;

    /**
     * 已审核数
     */
    @NotNull(message = "已审核数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long auditedItems;

    /**
     * 任务状态（字典）
     */
    @NotBlank(message = "任务状态（字典）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskStatus;

    /**
     * 任务开始时间
     */
    @NotNull(message = "任务开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 任务结束时间
     */
    @NotNull(message = "任务结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;


}
